<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>员工</title>
    <%@include file="/static/js/common.jsp"%>
    <script src="/static/js/gift.js"></script>
    <script>
    </script>
</head>
<body>
<table id="gift_datagrid"></table>
<div id="gift_tb">
    <a class="easyui-linkbutton" data-cmd="add" data-options="iconCls:'icon-add',text:'礼品出库单'"></a>
    <a class="easyui-linkbutton" data-cmd="edit" data-options="iconCls:'icon-edit',text:'编辑'"></a>
    <a class="easyui-linkbutton" data-cmd="del" data-options="iconCls:'icon-remove',text:'刪除'"></a>
    <a class="easyui-linkbutton" data-cmd="reload" data-options="iconCls:'icon-reload',text:'刷新'"></a>
    <input class="easyui-textbox" name="keyword" prompt="请输入礼品名"/>
    <a class="easyui-linkbutton" data-cmd="queryForKey"  data-options="iconCls:'icon-search',text:'查询'"></a>
</div>


<div id="gift_dialog">
    <form id="gift_form" method="post">
        <input type="hidden" name="id">
        <table align="center"style="margin :15px; border-spacing:10px;">
            <tr>
                <td>订单编号:<input id="mySn" name="sn" style="width:170px;" class="easyui-textbox" readonly="readonly" prompt="系统自动生成"></td>
            </tr>
            <tr>
                <td>业务时间:<input name="vdate" style="width:170px;" class="easyui-datetimebox"></td>
            </tr>

            <tr>
                <td>仓库:<input type="text" name="depot.id" class="easyui-combobox"
                              data-options="url:'/depot/selectAll.do',textField:'name',valueField:'id',panelHeight:'auto'"></td>
            </tr>
        </table>
        <table align="center" style="margin-top: 20px">
            <thead>
            <tr>
                <td width="50"><a class="easyui-linkbutton" href="#" iconCls="icon-add" plain="true" data-cmd="addProduct"></a></td>
                <td width="120">商品编码</td>
                <td width="120">商品名称</td>
                <td width="120">商品数量</td>
                <td width="120">备注</td>
            </tr>
            </thead>
            <tbody id="edit_tbody">
            </tbody>
        </table>
    </form>
</div>
<!--对话框底部工具栏-->
<div id="gift_dig_btn">
    <a class="easyui-linkbutton" data-cmd="save" data-options="iconCls:'icon-save',text:'保存'"></a>
    <a class="easyui-linkbutton" data-cmd="cancel" data-options="iconCls:'icon-cancel',text:'取消'"></a>
</div>

<table id="itemTr">
    <tr>
        <td></td>
        <td>
            <span tag="sn" name="product.ProductSn"></span>
            <input type="hidden" name="product.id" tag="pid"/>
        </td>
        <td><span tag="name" name="product.productName"></span></td>
        <td><input tag="number" name="number" type="number" /></td>
        <td><input tag="remark" name="remark"/></td>
        <td>
            <a class="easyui-linkbutton deleteItem" href="#" iconCls="icon-remove" plain="true"></a>
        </td>
    </tr>
</table>
<%--添加商品--%>
<div id="product_view"><table id="pro_datagrid"></table></div>
<div id="gift_btns">
    <a class="easyui-linkbutton" href="#" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" href="#" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>
</body>
</html>
